package com.ponhu.ea2.stockcenter.provider.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 库存变动快照表
 * @TableName ph_stock_inventory_change_snapshot
 */
@Accessors(chain = true)
@TableName(value ="ph_stock_inventory_change_snapshot")
@Data
public class StockInventoryChangeSnapshot implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 库存变动ID
     */
    private Long stockChangeId;

    /**
     * 商品ID
     */
    private Long goodsId;

    /**
     * 货品ID
     */
    private Long inventoryId;

    /**
     * 货品编码
     */
    private String inventoryCode;

    /**
     * 可售库存数
     */
    private Integer saleStockNum;

    /**
     * 占用库存数
     */
    private Integer usedStockNum;

    /**
     * 商品类型(1:实物类;2:虚拟类)
     */
    private Integer goodsType;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}